//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Lorrie Morgan & The Gatlin Brothers','The Salt River Grand Ballroom at Talking Stick Resort','Scottsdale, AZ','Friday','5/3/2024','8:00 PM','6216108','Lorrie-Morgan---The-Gatlin-Brothers-5-3-2024'],['Opry Country Classics: The Gatlin Brothers, Chris Janson & Jamey Johnson','Grand Ole Opry House','Nashville, TN','Thursday','5/9/2024','7:00 PM','6263702','Opry-Country-Classics--The-Gatlin-Brothers--Chris-Janson---Jamey-Johnson-5-9-2024'],['Opry Country Classics','Grand Ole Opry House','Nashville, TN','Thursday','5/16/2024','7:00 PM','6275186','Opry-Country-Classics-5-16-2024'],['Opry Country Classics: The Gatlin Brothers','Ryman Auditorium','Nashville, TN','Saturday','6/8/2024','12:00 PM','6317127','Opry-Country-Classics--The-Gatlin-Brothers-6-8-2024'],['The Gatlin Brothers & Lorrie Morgan','Nebraska State Fairgrounds','Grand Island, NE','Monday','8/26/2024','2:00 PM','6151884','The-Gatlin-Brothers---Lorrie-Morgan-8-26-2024'],['The Gatlin Brothers','Showroom at South Point Hotel And Casino','Las Vegas, NV','Friday','8/30/2024','7:30 PM','6385404','The-Gatlin-Brothers-8-30-2024'],['The Gatlin Brothers','Showroom at South Point Hotel And Casino','Las Vegas, NV','Saturday','8/31/2024','7:30 PM','6385405','The-Gatlin-Brothers-8-31-2024'],['The Gatlin Brothers','Showroom at South Point Hotel And Casino','Las Vegas, NV','Sunday','9/1/2024','7:30 PM','6385406','The-Gatlin-Brothers-9-1-2024'],['The Gatlin Brothers','The Mansion - MO','Branson, MO','Saturday','10/19/2024','8:00 PM','6233689','The-Gatlin-Brothers-10-19-2024'],['The Gatlin Brothers','Arlington Music Hall','Arlington, TX','Saturday','11/2/2024','7:30 PM','6285798','The-Gatlin-Brothers-11-2-2024']],'"The Gatlin Brothers"','https://www.ticketnetwork.com');